/*
 * film.c
 *
 *  Created on: 14/09/2010
 *      Author: dela
 */

#include "film.h"
#include "person.h"
#include <malloc.h>

/**
 *
 */
void film_destroy( TFilm *film ) {
	if ( film->title )
		free( film->title );

	TPerson *p;
	while ( !ls_Vacia(film->people) ) {
		ls_ElemCorriente(film->people, (void**)&p);
		person_destroy(p);
		ls_BorrarCorriente(&(film->people));
	}

}
